using System;
using Input;
using UnityEngine;
using UnityEngine.InputSystem;

public class TestInput : MonoBehaviour
{
    private InputSystem_Player input;

    private void Awake()
    {
        input = new InputSystem_Player();
    }

    // Start is called once before the first execution of Update after the MonoBehaviour is created
    void Start()
    {
        input.Game.Enable();
    }

    // Update is called once per frame
    void Update()
    {
        // if (input.Game.Dash.phase == InputActionPhase.Canceled)
        // {
        //     Debug.Log("Canceled");
        // }
        //
        // if (input.Game.Dash.phase == InputActionPhase.Performed)
        // {
        //     Debug.Log("Performed");
        // }
        //
        // if (input.Game.Dash.phase == InputActionPhase.Started)
        // {
        //     Debug.Log("Started");
        // }
        

        if (input.Game.Dash.WasPerformedThisFrame())
        {
            Debug.Log("WasPerformedThisFrame");
        }
        
        if (input.Game.Dash.WasPressedThisFrame())
        {
            Debug.Log("WasPressedThisFrame");
        }

        if (input.Game.Dash.IsPressed())
        {
            Debug.Log("IsPressed");
        }
        
        if (input.Game.Dash.WasCompletedThisFrame())
        {
            Debug.Log("WasCompletedThisFrame");
        }
        
        if (input.Game.Dash.WasReleasedThisFrame())
        {
            Debug.Log("WasReleasedThisFrame");
        }
        
    }
}
